import request from '@/utils/request'

// 查询考勤组设置列表
export function listAttend_group(query) {
  return request({
    url: '/ehr/attend_group/list',
    method: 'get',
    params: query
  })
}

// 查询考勤组设置详细
export function getAttend_group(attendanceGroupId) {
  return request({
    url: '/ehr/attend_group/' + attendanceGroupId,
    method: 'get'
  })
}

// 新增考勤组设置
export function addAttend_group(data) {
  return request({
    url: '/ehr/attend_group',
    method: 'post',
    data: data
  })
}

// 修改考勤组设置
export function updateAttend_group(data) {
  return request({
    url: '/ehr/attend_group',
    method: 'put',
    data: data
  })
}

// 删除考勤组设置
export function delAttend_group(attendanceGroupId) {
  return request({
    url: '/ehr/attend_group/' + attendanceGroupId,
    method: 'delete'
  })
}

